var express = require('express');
var router = express.Router();
var dataCtrl=require('../controllers/sort.controller');

/* GET users listing. */
router.post('/data',dataCtrl.create);
router.put('/data/:id',dataCtrl.updata);
router.delete('/data/:id',dataCtrl.remove);
router.get('/data/:id',dataCtrl.getdata);
router.post('/list/:type',dataCtrl.list);
// router.get('/data/:id',dataCtrl.getData);


module.exports = router;
